package com.itheima.dao;

import com.itheima.pojo.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MemberDao {
    @Select("select * from t_member where name=#{name} and idCard=#{idCard};")
    Member findByNameAndIdCard(String name, String idCard);

    void insert(Member member);

    @Select("select * from t_member where phoneNumber=#{telephone};")
    List<Member> findByPhoneNumber(String telephone);
}
